package com.bana.sys.model;

import com.bana.sys.code.TreeNodeType;

/**
 * 机构
 */
public class Department extends TreeNode{

    //数据库字段
    private int jgbm;
    private String jgmc;
    private int jglx;
    private int xzjb;
    private int sjdw;
    private String jgzn;
    private String ywms;
    private int bzrs;
    private String fzr;
    private String fzrdh;
    private String fzrsj;
    private String zbdh;

    //基本信息
    private String jglxsm;
    private String xzjbsm;
    private String sjdwsm;

    public static int All=0;
    public static int None=-1;
    public static String AllTag="";
    public static String NoneTag=null;

    public int getJgbm() {
        return jgbm;
    }

    public void setJgbm(int jgbm) {
        this.jgbm = jgbm;
    }

    public String getJgmc() {
        return jgmc;
    }

    public void setJgmc(String jgmc) {
        this.jgmc = jgmc;
    }

    public int getJglx() {
        return jglx;
    }

    public void setJglx(int jglx) {
        this.jglx = jglx;
    }

    public int getXzjb() {
        return xzjb;
    }

    public void setXzjb(int xzjb) {
        this.xzjb = xzjb;
    }

    public int getSjdw() {
        return sjdw;
    }

    public void setSjdw(int sjdw) {
        this.sjdw = sjdw;
    }

    public String getJgzn() {
        return jgzn;
    }

    public void setJgzn(String jgzn) {
        this.jgzn = jgzn;
    }

    public String getYwms() {
        return ywms;
    }

    public void setYwms(String ywms) {
        this.ywms = ywms;
    }

    public int getBzrs() {
        return bzrs;
    }

    public void setBzrs(int bzrs) {
        this.bzrs = bzrs;
    }

    public String getFzr() {
        return fzr;
    }

    public void setFzr(String fzr) {
        this.fzr = fzr;
    }

    public String getFzrdh() {
        return fzrdh;
    }

    public void setFzrdh(String fzrdh) {
        this.fzrdh = fzrdh;
    }

    public String getFzrsj() {
        return fzrsj;
    }

    public void setFzrsj(String fzrsj) {
        this.fzrsj = fzrsj;
    }

    public String getZbdh() {
        return zbdh;
    }

    public void setZbdh(String zbdh) {
        this.zbdh = zbdh;
    }

    public String getJglxsm() {
        return jglxsm;
    }

    public void setJglxsm(String jglxsm) {
        this.jglxsm = jglxsm;
    }

    public String getXzjbsm() {
        return xzjbsm;
    }

    public void setXzjbsm(String xzjbsm) {
        this.xzjbsm = xzjbsm;
    }

    public String getSjdwsm() {
        return sjdwsm;
    }

    public void setSjdwsm(String sjdwsm) {
        this.sjdwsm = sjdwsm;
    }

    @Override
    public String getId() {
        return String.format("%03d%06d", jgbm,0);
    }

    @Override
    public String getName() {
        return jgmc;
    }

    @Override
    public int getKey() {
        return jgbm;
    }

    @Override
    public boolean isLeaf() {
        return false;
    }

    @Override
    public int getType() {
        return TreeNodeType.Department;
    }
}